<?php

$app_modules["ff_proj_milest"] = array(
    'slug' => __('project_milestones'),
    'name' => __('Project Milestones'),
    'menu_name' => __('Project Milestones'),
    'singular_name' => __('Project Milestone'),
    'icon' => 'clipboard_16.png',
    'migrate_fields_list' => array(
        'priority,ff_priority',
        'status,ff_task_status',
        'percent_complete,ff_percent_complete',
    ),
    'module_columns_sortby' => array('post_title', 'assign_to', 'start_date', 'due_date', 'account_parent', 'contact_parent', 'project_parent', 'priority', 'status', 'percent_complete', 'post_date'),
    'module_columns' => array('post_title', 'assign_to', 'start_date', 'due_date', 'project_parent', 'account_parent', 'contact_parent', 'priority', 'status', 'percent_complete', 'post_date'),
    'module_columns_filters' => array('account_parent', 'assign_to', 'contact_parent', 'project_parent', 'priority', 'status', 'percent_complete'),
    'module_columns_config' => array(
        'grid_type' => 'ajax_data',
        'use_paging' => true,
        'use_global_default_paging_nb' => true, //THIS MUST BE SET IN GENERAL OPTION, with option 'default_paging_nb'
        //'nb_by_page'=>20, //To FORCE A SPECIFIC PAGING NB FOR THIS MODULE. WILL OVERHIDE THE use_global_default_paging_nb NB
        'user_can_change_paging_nb_by_module' => true,
    ),
    'module_dashboard_widgets' => array(
       /* '10_latest' => array(
            'label' => 'Latest Milestones',
            'type' => 'latest_list',
            //'show_date'=>true,
            'fields' => array('assign_to', 'due_date', 'priority', 'status', 'percent_complete')
        ),
        'my_milestones' => array(
            'label' => 'My Milestones',
            'top_string' => 'My {latest} {total_items} assigned Milestones',
            'type' => 'filtered_list',
            'filters' => array(
                'assign_to' => array("value" => array(1))
            ),
            //'show_date'=>true,
            'fields' => array('assign_to', 'due_date', 'priority', 'status', 'percent_complete')
        ),*/
    ),
    'module_new_categories' => array('cat15_milestones'),
    'module_tags' => array('tag15_projects'),
    'metaboxes' => array('quickadd' => array(
            'title' => __('Quick Add'), // & tags
            'context' => 'side',
            'priority' => 'high',
            'positioning' => array(
                'main' => array(
                ),
                'tabs' => array(
                    'tablone' => array(
                        'label' => 'Quick add',
                        'items' => array(
                            array('quick_add_event'),
                            array('quick_add_note'),
                        )
                    )
                /* ,'tabltwo' => array(
                  'label'=>'tags',
                  'items'=>array(
                  array('tags_list'),
                  )
                  ), */
                )
            )
        ),
        'team_notif' => array(
            'title' => __('Teams & Categories'),
            'context' => 'side',
            'priority' => 'high',
            'positioning' => array(
                /* 'main' => array(
                  array('assign_to'),
                  ), */

                'tabs' => array(
                    'tabltwo' => array(
                        'label' => 'Team & Notifications',
                        'items' => array(
                            array('team_assignments'),
                        )
                    ),
                    'tablone' => array(
                        'label' => 'Categories',
                        'items' => array(
                            array('categories_list'),
                        )
                    )
                )
            )
        ),
        'milestone_information' => array(
            'title' => __('Milestone Information'),
            'context' => 'advanced',
            'priority' => 'high',
            'positioning' => array(
                'topbar' => array(
                    'special' => array('assign_to'),
                    'common' => array(
                        'delete_action' => true,
                        'status_action' => true,
                        'save_action' => true,)
                ),
                'main' => array(
                    array(
                        'ref_id', 'project_parent'
                    ),
                    array(
                        'start_date', 'due_date', 'end_date'
                    ),
                    array(
                        'priority', 'status'
                    ),
                    array(
                        'percent_complete'//ff_proj_tsk_type
                    ),
                    array(
                        'account_parent', 'contact_parent'
                    ),
                    array(
                        'created_by', 'created_date', 'modified_date'
                    )
                ),
                'tabs' => array(
                    'tab_2' => array(
                        'label' => 'Description',
                        'items' => array(
                            array('full_description'),
                        )
                    ),
                    'tab_11' => array(
                        'label' => 'Comments',
                        'items' => array(
                            array('comments'),
                        )
                    ),
                    'tab_10' => array(
                        'label' => 'Files',
                        'items' => array(
                            array('files_upload'),
                        )
                    )
                )
            )
        )
    )
);

